<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <style>
        /* min-width min-height:300px max-width max-height:600px; */
        div {
            width: 300px;
            height: 300px;
            border: solid 3px #ccc;
            padding: 30px;
        }

        div img {
            max-width: 90%;
            min-width: 50%;
        }
    </style>
</head>

<body>
    <div>
        <img src="1.jpg" alt="">
    </div>
</body>

</html>